package com.wangzefeng.shop.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 购物车表
 * </p>
 *
 * @author wangzefeng
 * @since 2021-03-18
 */
public class UserCart implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 商品id
     */
    private Integer goodsId;

    /**
     * 商品分类id
     */
    private String classId;

    /**
     * 商品分类名称
     */
    private String className;

    /**
     * 商品数量
     */
    private Integer goodsNum;

    /**
     * 生成时间
     */
    private Date createTime;

    /**
     * 修改时间
     */
    private Date updateTime;


    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public String getClassId() {
        return classId;
    }

    public void setClassId(String classId) {
        this.classId = classId;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public Integer getGoodsNum() {
        return goodsNum;
    }

    public void setGoodsNum(Integer goodsNum) {
        this.goodsNum = goodsNum;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "UserCart{" +
        "userId=" + userId +
        ", goodsId=" + goodsId +
        ", classId=" + classId +
        ", className=" + className +
        ", goodsNum=" + goodsNum +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
